<?php /* Smarty version 2.6.18, created on 2016-12-15 16:18:34
         compiled from pay/pay.job.tpl.php */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.header.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.left.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
  <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">
             <form action="" method="post">
                <div class="box-header with-border">
                    <span class="fa fa-edit" style="float:left; font-size:18px; margin-top:2px; color:#3c8dbc;" ></span>
                    <p class="box-title">职务补贴设置</p>
                </div>
                <div class="box-body">
                      <table class="table table-bordered table-striped" id="mytable">  
                          <thead>					  
                             <tr style="background-color:#5fb2dc;">
                                <td>教师编号</td>
                                <td>教师姓名</td>
                                <td>职务</td>
                                <td>补贴金额</td>
                                <td width="140">操作</td>   
							 </tr>
					      </thead>
							<?php $_from = $this->_tpl_vars['staff_lists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
                             <tr>
                                <td><?php echo $this->_tpl_vars['value']['staff_number']; ?>
</td>
                                <td><?php echo $this->_tpl_vars['value']['staff_name']; ?>
</td>
                                <td><?php echo $this->_tpl_vars['value']['staff_job']; ?>
</td>
                                <td><?php echo $this->_tpl_vars['value']['job_sub']; ?>
</td>
                                <td>
                                   <a href="#" onclick="show('<?php echo $this->_tpl_vars['value']['staff_number']; ?>
', '<?php echo $this->_tpl_vars['value']['staff_name']; ?>
', '<?php echo $this->_tpl_vars['value']['staff_id']; ?>
')" class="btn btn-success btn-xs" data-toggle="modal" data-target="#mymodal"> 职务补贴</a>
                                </td>
							 </tr>
							<?php endforeach; endif; unset($_from); ?>
						 </table>      	   
				    </div><!--box-body --> 
                 </form>
             </div><!--box box-default box-solid-->
          </section>   
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->

<!--弹出内容-->
<div class="modal fade" id="mymodal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document" style="width:400px;">
    <div class="modal-content">
      <form action="" method="post">
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
            <h4 class="modal-title" id="myModalLabel">职位补贴</h4>
          </div>
          <div class="modal-body row">
              <p style="margin-left:15px;"><span id="number"> </span>   <span id="name"> </span></p>
              <div class="form-group">
                    <label class="col-md-3 control-label" style="font-weight:500;">
                         补贴金额：
                    </label>
                    <div class="col-md-8" style="padding-left:0px;">
                         <input name="job_sub" type="text" value="" placeholder="请输入职位补贴金额">
                    </div>
             </div>  
          </div>
          <div class="modal-footer">
             <input type="hidden" id="hide" name="staff_id" value="">
            <button type="submit" class="btn btn-primary btn-sm">确定</button>
            <button type="button" class="btn btn-default btn-sm" data-dismiss="modal">取消</button>
          </div>
       </form>
    </div>
  </div>
</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.footer.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<script>
function show(a,b,d){
	$("#number").html(a);
	$("#name").html(b);
	$("#hide").val(d);
	}
</script>
